//
//  SHMyCollectionViewCell.m
//  SimpleHappy
//
//  Created by 张超 on 15/11/24.
//  Copyright © 2015年 RockyFung. All rights reserved.
//  R:187 G:147 B:85

#import "SHMyCollectionViewCell.h"
#import "Define.h"
@interface SHMyCollectionViewCell ()

@end



@implementation SHMyCollectionViewCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // 边框
//        self.layer.borderColor = [UIColor colorWithRed:187.0/255 green:147.0/255 blue:85.0/255 alpha:0.5].CGColor;
//        self.layer.borderWidth = 0.5;
        
        // cell上的图片
        CGFloat width = KScreenWidth / 9.375;
        self.SHImage = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, width, width)];
        self.SHImage.center = CGPointMake(self.bounds.size.width / 2, self.bounds.size.width / 2) ;
        [self.contentView addSubview:self.SHImage];
        
        // cell 上的标题
        self.SHLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, KScreenHeight / 9.5, self.bounds.size.width, KScreenHeight / 33.35)];
        self.SHLabel.center = CGPointMake(self.SHImage.center.x, self.bounds.size.width / 1.3);
        self.SHLabel.textAlignment = NSTextAlignmentCenter;
        self.SHLabel.textColor = [UIColor colorWithRed:187.0/255 green:147.0/255 blue:85.0/255 alpha:1];
        self.SHLabel.font = [UIFont boldSystemFontOfSize:KScreenWidth / 31.25];
        [self.contentView addSubview:self.SHLabel];
        
    }
    return self;
}




@end
